<?php
    //require_once '../config.php';
    require_once '../classes/xl_loai_tai_san.php';
    //require_once '../DTO/DOANHNGHIEP_DTO.php';

    $xl_lts = new xl_loai_tai_san();
    $loai_ts = $xl_lts->danh_sach_all();
?>

<div class="elements">
    <h3 class="ui-widget-header widgets">
        <div class="title">Thuê và cho thuê</div>
    </h3>
    <div class="tin_noi_bat">
        <ul class="danh_muc">
            <li class="menu"><a href="#" class="text">Đăng ký cho thuê</a></li>

            <li class="menu"><a href="#" class="text">Danh sách cho thuê</a></li>

            <?php foreach($loai_ts as $row_lts){ ?>
                <li class="menu">
                    <a href="../cho_thue/danh_sach_cho_thue.php?ma_lts=<?php echo $row_lts['ma']?>"
                                    class="text"><?php echo $row_lts['ten_loai']?></a>
                </li>
            <?php }?>

        </ul>
    </div>
</div>